package com.xyw.his00.pojo.dbpojo;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import com.xyw.his00.pojo.newpojo.ExportPdfFileTemplate;
import com.xyw.his00.service.newservice.ExportPdf;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

import java.time.LocalDateTime;

@Data
@TableName("inspection_request")
@AllArgsConstructor
@NoArgsConstructor
public class InspectionRequest implements ExportPdf {
    @TableId(value="id",type = IdType.AUTO)
    private Integer id;
    private Integer registerId;
    private Integer medicalTechnologyId;
    private String inspectionInfo;
    private String inspectionPosition;
    private LocalDateTime creationTime;
    private Integer inspectionEmployeeId;
    private Integer inputinspectionEmployeeId;
    private LocalDateTime inspectionTime;
    private String inspectionResult;
    private String inspectionState;//状态
    private String inspectionRemark;

    @Override
    public ExportPdfFileTemplate createPdf(Class<? extends ExportPdf> exportedPdfClass) {
         return  new ExportPdfFileTemplate(getRegisterId(),
                 getMedicalTechnologyId(),
                 getInspectionInfo(),
                 getInspectionPosition(),
                 getCreationTime(),
                 getInspectionEmployeeId(),
                 getInputinspectionEmployeeId(),
                 getInspectionTime(),
                 getInspectionResult(),
                 getInspectionState(),
                 getInspectionRemark());
    }
}
